package cc.wfu.infrastructure.persistent.dao;

import cc.wfu.infrastructure.persistent.po.ProductSku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lijiaqiang@ljq1024.cc
 * @since 2024-06-05
 */
@Mapper
public interface IProductSkuDao extends BaseMapper<ProductSku> {

    /** 查询SKU信息 */
    ProductSku queryActivitySku(Long sku);

    /** 清空商品sku库存 */
    void clearActivitySkuStock(Long sku);

    /** 延迟队列 + 任务 趋势更新活动sku库存 */
    void updateActivitySkuStock(Long sku);

}
